package com.frank.auth.infra.basic.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/2/9
 * @description
 */
@Data
@TableName(value = "auth_user")
public class AuthUser implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "email")
    private String email;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "`password`")
    private String password;

    @TableField(value = "sex")
    private Integer sex;

    @TableField(value = "avatar")
    private String avatar;

    @TableField(value = "`status`")
    private Integer status;

    @TableField(value = "introduce")
    private String introduce;

    @TableField(value = "ext_json")
    private String extJson;

    /**
     * 创建人
     */
    @TableField(value = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "is_deleted", select = false)
    @TableLogic
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}